package com.crm.service.system.department.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.model.common.dtos.ResponseResult;
import com.crm.model.system.department.dtos.DepartmentDto;
import com.crm.model.system.department.dtos.DepartmentPageDto;
import com.crm.model.system.department.pojos.Department;

public interface DepartmentService extends IService<Department> {
    ResponseResult pageList(DepartmentPageDto departmentPageDto);

    ResponseResult namelist();

    ResponseResult selectDepartmentById(Integer id);

    ResponseResult saveDepartment(DepartmentDto departmentDto);

    ResponseResult updateDepartment(DepartmentDto departmentDto);

    ResponseResult deleteDepartment(Integer id);
}
